var caseTreeInit = function(){

    var setting = {
    //显示复选框
    check: {
        enable: true
        // chkStyle:"checkbox"
    },
    /*
        //显示单选框
        check: {
            enable: true,
            chkStyle: "radio",
            radioType: "level"
        },
    */
    };
    $(document).ready(function(){
        // 调用用例树接口获取用例列表数据并默认展开
        $.get("/task_manage/task_get_case_tree/",{}, function(resp){

            var zNodes = resp.data
            zTreeObj = $.fn.zTree.init($("#treeDemo"), setting, zNodes);
            zTreeObj.expandAll(true) // 默认展开
        })

    });


}
